$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_wzzlsq_m")
    const dgrid1 = $NG.getCmpApi("p_form_wzzlsq_d1")
    const getHeadValue = (str)=>mstform.getItem(str).getValue()

    useUpdateRows(({args})=>{
        const rows = args[0]
        let total_amt = 0
        rows.forEach(el=>{
            total_amt += (Number(el.u_zlzj) || 0)
        })
        mstform.getItem("u_zlzje").setValue(total_amt)
        dgrid1.refreshView()
    },"p_form_wzzlsq_d1")
})
